package com.yanqu.road.entity.activity.oldplayerreturn;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_return_player_add_shop_limit")
public class OldPlayerReturnShopLimit extends DataObject {
    @FieldTypeAnnotation(desc = "userId", select = true, update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "商店id", update = true)
    private int mallId;
    @FieldTypeAnnotation(desc = "总共找回了多少次数")
    private int totalAddLimit;
    @FieldTypeAnnotation(desc = "已经使用的找回次数")
    private int hasBuyTimes;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getMallId() {
        return mallId;
    }

    public void setMallId(int mallId) {
        if (this.mallId != mallId) {
            this.mallId = mallId;
            setOp(DataStatus.Update);
        }
    }

    public int getTotalAddLimit() {
        return totalAddLimit;
    }

    public void setTotalAddLimit(int totalAddLimit) {
        if (this.totalAddLimit != totalAddLimit) {
            this.totalAddLimit = totalAddLimit;
            setOp(DataStatus.Update);
        }
    }

    public int getHasBuyTimes() {
        return hasBuyTimes;
    }

    public void setHasBuyTimes(int hasBuyTimes) {
        if (this.hasBuyTimes != hasBuyTimes) {
            this.hasBuyTimes = hasBuyTimes;
            setOp(DataStatus.Update);
        }
    }


}
